home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
DEMOS
/
FLYNS
/
!FLyns
/
!Help
< prev
next >
Wrap
Text File
|
1996-03-16
|
2KB
|
56 lines
/********************************************************************/
/* -=[FlY'96]=- presents !FLYns a lens effect tutorial .... */
/********************************************************************/
So here is my second little code on Arm machine :) (first !Flyre a
fire effect ... some bugs still have to be fixed ;( )
This piece of code demonstrate the LENS effect.
I include the sources (in C) for you all other beginner that maybe
wanted to code such little things ;)
I find the C sources self explaining. However let resume the idea of
the LENS:
you want to deform a piece of image on a spherical object (
or any other object that you want if you have a formula ) so
the goal is to precalculate the deformation in a table ( see
the C code buildlens ) and then always copy a source block,
apply the deformation using the table in a destination block
(see createlens) and display that block... then you restore
the old image block (source) and restart with first copying
a new source block to deform ... that's very simple...
In the C code provided I do not restore the old source becoz
of the way the ball move do not destroy the borders around
the ball so I don't have to restore anything. However the
restore C piece of code is provided if you want another
-moving path- for the ball, just uncomment restorescr in the
do {} by deleting the '//' ...
SORRY:
The present code is not that fast becoz it's not ARM pure juice.
Sorry about that... It may then not run very smoothly on many
Acorns ... It runs ok on my A5000 but I don't know for the other
machines...
NOTE:
This little demo is mostly intended for beginners like me that have
always wanted to have sources to understand the effects and maybe
(who knows ?) become one day a good coder :)
GREETINGS:
Just want to say hello to some friends around: Daniel who greatly
helped me in my first steps, Armoric the master of 3Kb Basic ARM
powered effects :) , BASS (lo John, Karl, Gil and the others...),
And all the demo scene (if there is any ...;) ) !
SPECIAL:
special thanx to the drawer of the picture I use in !Flyns .......
(picture from The Party 1995: Roswell drawn by Mon/Oxygene)
ADDRESS:
if u want just drop me a mail to ahuet@ulb.ac.be ...
( available to august 96 at least )
<EOF>